package com.tarena.lbs.business.service;

import com.tarena.lbs.base.protocol.exception.BusinessException;
import com.tarena.lbs.base.protocol.pager.PageResult;
import com.tarena.lbs.business.pojo.param.StoreParam;
import com.tarena.lbs.business.pojo.query.AreaStoreQuery;
import com.tarena.lbs.business.pojo.query.StoreQuery;
import com.tarena.lbs.business.pojo.vo.StoreVO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface StoreService {
    // 根据商家ID查询店铺VO列表
    List<StoreVO> getStoresByBusinessId(Integer businessId);
    // 添加分页查询店铺列表的方法
    PageResult<StoreVO> pageList(StoreQuery query);

    void saves(StoreParam param)throws BusinessException;

    List<StoreVO> getStoreByCity(AreaStoreQuery query);

    void update(StoreParam param);

    StoreVO storeEdit(Integer storeId);

    List<StoreVO> getStoreById(AreaStoreQuery query);


    void delete(Integer storeId);
}
